package com.jyhz.model;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableFeignClients
@EnableCaching // 开启缓存注解
@EnableDiscoveryClient  // nacos 注册
//@EnableRabbit //开启消息中间件注解
@EnableAsync // 开启异步处理注解
@EnableAspectJAutoProxy
@ComponentScan("com.jyhz")
@MapperScan(basePackages = "com.jyhz.model.dao")
public class ModelShykApplication {

    public static void main(String[] args) {
        SpringApplication.run(ModelShykApplication.class, args);
    }

}
